package com.autumn.platform.web.bind;

import org.springframework.beans.BeanWrapper;
import org.springframework.validation.BeanPropertyBindingResult;

/* package */class RelaxedBeanPropertyBindingResult extends BeanPropertyBindingResult {
    private static final long serialVersionUID = -8321282528993868220L;

    public RelaxedBeanPropertyBindingResult(Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit) {
        super(target, objectName, autoGrowNestedPaths, autoGrowCollectionLimit);
    }

    @Override
    protected BeanWrapper createBeanWrapper() {
        BeanWrapper beanWrapper = new RelaxedBeanWrapper(getTarget());
        return beanWrapper;
    }
}
